#ifndef _DOUBANGOHELPERS_H_
#define _DOUBANGOHELPERS_H_

#include <winrtsock.h>

int InitializeSockAddrInfo(const char *host, int port, int family, int type, struct sockaddr_storage *ai_addr, int *ai_family, int *ai_socktype, int *ai_protocol);
int GetFamily(const char* host, int port);
int ConnectTo(SOCKET socket, const struct sockaddr_storage *to);
int GetSocketIpAndPort(const struct sockaddr *addr, char *ip, int ipLength, int *port);
#endif	//_DOUBANGOHELPERS_H_